package api

import (
	"blog-gin/pkg/logging"
	"html/template"

	"github.com/gin-gonic/gin"
)

func GetHome(c *gin.Context) {
	t, err := template.ParseFiles("page/html/index.html")
	if err != nil {
		logging.Error("open index.html failed!!")
	}

	t.Execute(c.Writer, nil)
}
